package com.xjtu.platform.security.register.dao;

import com.xjtu.platform.security.register.MailDto;
import org.apache.ibatis.annotations.*;

@Mapper
public interface FlagDao {

    @Update("update user set flag=#{code} where user_id=#{dto.user_id}")
    void insertFlag(@Param("dto") MailDto mailDto, @Param("code") int code);

    @Select("select count(email) from user where email=#{email}")
    int getExist(MailDto mailDto);
}
